package com.muyan.sys.common.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * 读取项目相关配置
 * 
 * @author muyan
 */

@Configuration
@ConfigurationProperties(prefix = "spring.data.redis")
@Data
public class RedisSingleConfig
{
    /** 主机 */
    private String host;
    /** 密码 */
    private String password;

    /** 端口 */
    private int port;

    /** 数据 */
    private int database;

    /** 数据 */

    private int timeouts = 3000;
    private int pingTimeout = 1000;
    private int retryInterval = 1500;

    private int connectionPoolSize = 500;

    private int connectionMinimumIdleSize = 10;

    private int slaveConnectionPoolSize = 500;

    private int masterConnectionPoolSize = 500;
}
